function loadCategories(){
    //alert($('#category-menu-holder'));
    $('#category-menu-holder .content').load("CategoryLoader");
}

function showLogin(){
    var pos = findPos("links");
    $('#loginScreen').css({position:'absolute',top:pos[1]+30,left:pos[0]+950});
    $('#loginScreen').show();
    $('#loginScreen').html("<form action=\"LoginAction\" method=\"post\"><table><tr><td>Login Name</td><td><input name=\"loginid\" type=\"text\"/></td></tr><tr><td>Password</td><td><input name=\"loginpass\" type=\"password\"/></td></tr> <tr><td></td><td><button class='g-button g-button-submit' onclick='hideLogin();'>Login</button></td></tr> </table></form>");
}
function findPos(obj)
{

    var curleft = curtop = 0;

    if (obj.offsetParent) {
        curleft = obj.offsetLeft

        curtop = obj.offsetTop

        while (obj = obj.offsetParent) {
            curleft += obj.offsetLeft

            curtop += obj.offsetTop

        }

    }

    //alert(curleft + " " + curtop);
    return [curleft,curtop];
}
